package com.vframework.cms.document.model;

import java.util.List;

import com.util.UploadUtil;
import com.vframework.base.model.Entity;

public class DocumentBean extends Entity {
	
	private String fileId;     //id
	
	private String uid;

	private String parentId;   //上级目录
	
	private String fileName;   //文件名字
	
	private String fileSize;   //文件大小
	
	private String fileType;   //文件类型
	
	private String path;       //文件路径
	
	private String pathShow;   //图片展示路径
	
	private String rootPath;
	
	private String createBy;   //创建人
	
	private String createDate; //创建时间
	
	private String updateBy;    //修改人
	
	private String updateDate;     //更新时间
	
	private String ownerId;    //归属机构id
	
	private String permission; //访问权限0公开
	
	private String viewCount; //下载次数
	
	private List<DocumentBean> children;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getPathShow() {
        return UploadUtil.replacePath(path);
    }

    public String getRootPath() {
        return rootPath;
    }

    public void setRootPath(String rootPath) {
        this.rootPath = rootPath;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getViewCount() {
        return viewCount;
    }

    public void setViewCount(String viewCount) {
        this.viewCount = viewCount;
    }

    public List<DocumentBean> getChildren() {
        return children;
    }

    public void setChildren(List<DocumentBean> children) {
        this.children = children;
    }
}
